{%extends 'base.html'%}
{%import "bootstrap/wtf.html" as wtf%}

{%block title%}删除学生信息{%endblock%}

{%block page_content%}
<div class="page-header">
    <h1>确认删除</h1>
</div>

<div class="container">
    <div class="alert alert-warning">
        <p>您确定要删除以下学生信息吗？此操作无法撤销！</p>
    </div>
    
    <div class="panel panel-default">
        <div class="panel-body">
            <p><strong>学号：</strong>{{ student.student_id }}</p>
            <p><strong>姓名：</strong>{{ student.student_name }}</p>
            <p><strong>专业：</strong>{% if student.major %}{{ student.major.major_name }}{% else %}未分配专业{% endif %}</p>
            <p><strong>性别：</strong>{{ student.student_sex }}</p>
            <p><strong>年龄：</strong>{{ student.年龄 }}</p>
        </div>
    </div>
    
    <form method="POST" action="">
        {{ form.hidden_tag() }}
        <div class="form-group">
            <button type="submit" class="btn btn-danger">确认删除</button>
            <a href="{{ url_for('index') }}" class="btn btn-default">取消</a>
        </div>
    </form>
</div>
{%endblock%}